package com.gcxy.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author jiang
 * @since 2023-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Pen对象", description="")
public class Pen implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键、自增长")
    @TableId(value = "pen_id", type = IdType.AUTO)
    private Integer penId;

    @ApiModelProperty(value = "牧场编号（外键关联牧场）")
    private Integer ranchId;

    @ApiModelProperty(value = "圈舍名称（同牧场下唯一）")
    private String penName;

    @ApiModelProperty(value = "存栏量")
    private Integer amountLivestock;

//    @TableLogic
    @ApiModelProperty(value = "是否启用(1:启用，0:停用)")
    private Integer isEnable;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill= FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill= FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
